package com.ruoyi.pump.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pump.mapper.Dc3DeviceMapper;
import com.ruoyi.pump.domain.Dc3Device;
import com.ruoyi.pump.service.IDc3DeviceService;

/**
 * dc3设备信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-18
 */
@Service
public class Dc3DeviceServiceImpl implements IDc3DeviceService 
{
    @Autowired
    private Dc3DeviceMapper dc3DeviceMapper;

    /**
     * 查询dc3设备信息
     * 
     * @param id dc3设备信息主键
     * @return dc3设备信息
     */
    @Override
    public Dc3Device selectDc3DeviceById(Long id)
    {
        return dc3DeviceMapper.selectDc3DeviceById(id);
    }

    /**
     * 查询dc3设备信息列表
     * 
     * @param dc3Device dc3设备信息
     * @return dc3设备信息
     */
    @Override
    public List<Dc3Device> selectDc3DeviceList(Dc3Device dc3Device)
    {
        return dc3DeviceMapper.selectDc3DeviceList(dc3Device);
    }

    /**
     * 新增dc3设备信息
     * 
     * @param dc3Device dc3设备信息
     * @return 结果
     */
    @Override
    public int insertDc3Device(Dc3Device dc3Device)
    {
        return dc3DeviceMapper.insertDc3Device(dc3Device);
    }

    /**
     * 修改dc3设备信息
     * 
     * @param dc3Device dc3设备信息
     * @return 结果
     */
    @Override
    public int updateDc3Device(Dc3Device dc3Device)
    {
        return dc3DeviceMapper.updateDc3Device(dc3Device);
    }

    /**
     * 批量删除dc3设备信息
     * 
     * @param ids 需要删除的dc3设备信息主键
     * @return 结果
     */
    @Override
    public int deleteDc3DeviceByIds(Long[] ids)
    {
        return dc3DeviceMapper.deleteDc3DeviceByIds(ids);
    }

    /**
     * 删除dc3设备信息信息
     * 
     * @param id dc3设备信息主键
     * @return 结果
     */
    @Override
    public int deleteDc3DeviceById(Long id)
    {
        return dc3DeviceMapper.deleteDc3DeviceById(id);
    }
}
